from django.urls import path
from .views.literConfigView import *
from .views.literView import *
from .views.languageView import *
from .views.literTypeView import *
from .views.instTypeView import *
from .views.departTypeView import *
from .views.literStatusView import *
from .views.authorConfigView import *
from .views.keywordConfigView import *
from .views.pubTypeView import *
from .views.publicationConfigView import *
from .views.publicationView import *
from .views.journalPubCycleView import *
from .views.conferMeetingCycleView import *
from .views.keywordTypeView import *
from .views.globalTableTypeListView import *
from .views.globalTableConfigView import *
from .views.globalTableView import *
from .views.keywordView import *
from .views.instConfigView import *
from .views.departConfigView import *
from .views.instView import *
from .views.depView import *
from .views.authorView import *
from .views.literCompleteView import *
from .views.literUploadFileView import *
from .views.literDownloadFileView import *
from .views.literChineseView import *
app_name = 'literature'

urlpatterns = [
    path("literature/show-config", LiterConfigView.as_view(), name="show-liter-config"),
    path("literature/create-config", LiterAddConfigView.as_view(), name="liter-create-config"),
    path("literature", LiterView.as_view(), name="liter"),
    path("literature/<str:id>", LiterInfoView.as_view(), name="literature-info"),
    
    path("keyword/create-config", KeywordAddConfigView.as_view(), name="keyword-create-config"),
    path("keyword/show-config", KeywordConfigView.as_view(), name="show-keyword-config"),
    path("keyword", KeywordView.as_view(), name="keyword"),
    
    path("tag/create-config", TagAddConfigView.as_view(), name="tag-create-config"),
    path("tag/show-config", TagConfigView.as_view(), name="show-tag-config"),
    path("tag", TagView.as_view(), name="tag"),
    
    path("subject/create-config", SubjectAddConfigView.as_view(), name="subject-create-config"),
    path("subject/show-config", SubjectConfigView.as_view(), name="show-subject-config"),
    path("subject", SubjectView.as_view(), name="subject"),
    
    path("publication/create-config", PublicationAddConfigView.as_view(), name="pub-create-config"),
    path("publication/show-config/<str:publication_type>", PublicationConfigView.as_view(), name="show-pub-config"),
    path("publication/<str:publication_type>", PublicationView.as_view(), name="publication"),
    path("publication-info/<str:id>", PublicationInfoView.as_view(), name="publication-info"),
    
    path("language", LanguageView.as_view(), name="language"),
    path("literature-type", LiterTypeView.as_view(), name="literature-type"),
    path("institution-type", InstTypeView.as_view(), name="institution-type"),
    path("department-type", DepartTypeView.as_view(), name="department-type"),
    path("literature-status", LiterStatusView.as_view(), name="literature-status"),
    path("publication-type", PubTypeView.as_view(), name="publication-type"),
    path("journal-publication-cycle", JournalPubCycleView.as_view(), name="journal-publication-cycle"),
    path("conference-meeting-cycle", ConferMeetingCycleView.as_view(), name="conference-meeting-cycle"),
    path('keyword-type', KeywordTypeView.as_view(), name="keyword-type"),
    
    path("global-table/show-config", GlobalTableConfigView.as_view(), name="show-global-table-config"),
    path('global-table-type', GlobalTableTypesView.as_view(), name="global-table-type"),
    path("global-table/create-config", GlobalTableAddConfigView.as_view(), name="global-table-create-config"),
    path("global-table/<str:global_table_type>", GlobalTableView.as_view(), name="global-table"),
    path("global-table-info/<str:id>", GlobalTableInfoView.as_view(), name="global-table-info"),
    
    path("keyword-detail/show-config", KeywordDetailConfigView.as_view(), name="show-keyword-detail-config"),
    path("keyword-detail/create-config", KeywordDetailAddConfigView.as_view(), name="keyword-detail-create-config"),
    path("keyword-detail", KeywordDetailView.as_view(), name="keyword-detail"),
    path("keyword-detail/<str:id>", KeywordDetailInfoView.as_view(), name="keyword-detail-info"),
    
    path("institution/show-config", InstConfigView.as_view(), name="show-inst-config"),
    path("institution/create-config", InstAddConfigView.as_view(), name="inst-create-config"),
    path("institution", InstView.as_view(), name="institution"),
    path("institution/<str:id>", InstInfoView.as_view(), name="institution-info"),
    
    
    path("department/show-config", DepConfigView.as_view(), name="show-dep-config"),
    path("department/create-config", DepartAddConfigView.as_view(), name="depart-create-config"),
    path("department", DepView.as_view(), name="department"),
    path("department/<str:id>", DepInfoView.as_view(), name="department-info"),
    path("department-by-institution", DepByInstView.as_view(), name="department-by-institution"),
    
    path("author/show-config", AuthorConfigView.as_view(), name="show-author-config"),
    path("author/create-config", AuthorAddConfigView.as_view(), name="author-create-config"),
    path("author", AuthorView.as_view(), name="author"),
    path("author/<str:id>", AuthorInfoView.as_view(), name="author-info"),
    
    path("literature-blank-fields-search/<str:id>", LiterSearchBlankFieldsView.as_view(), name="literature-blank-fields-search"),
    path("literature-complete/<str:id>", LiterCompleteView.as_view(), name="literature-complete"),
    
    path("literature-chinese-fields/<str:id>", LiterChineseFieldsView.as_view(), name="literature-chinese-fields"),
    path("literature-chinese-info/<str:id>", LiterChineseInfoView.as_view(), name="literature-chinese-info"),
    
    path("literature-upload-file/<str:id>", LiterUploadFileView.as_view(), name="literature-upload-file"),
    path("literature-download-show-file/<str:id>", LiterDownloadShowFileView.as_view(), name="literature-download-show-file"),
]